// JavaScript Document
define(
    function(require) {
        function SteBor() {
			this.textPosition = 'end';
            this.type = 'steBor';
            this.brushTypeOnly = 'stroke';  //线条只能描边，填充后果自负
        }
        SteBor.prototype =  {
            /**
             * 创建线条路径
             * @param {Context2D} ctx Canvas 2D上下文
             * @param {Object} style 样式
             */
            buildPath : function(ctx, style) {
				style.xStart = parseInt(style.xStart);
				style.yStart = parseInt(style.yStart);
				style.xEnd = parseInt(style.xEnd);
				style.yEnd = parseInt(style.yEnd);
				//默认为实线

				ctx.arc(91,0,3,0,Math.PI*2,true);
				strokeColor :'rgb(253, 58, 2)',
				//strokeColor :'rgb(79, 114, 39)',

				ctx.moveTo(182,20);
				ctx.arc(182,20,3,0,Math.PI*2,true);
				strokeColor :'rgb(253, 58, 2)',
				//strokeColor :'rgb(79, 114, 39)',

				ctx.moveTo(91,40);
				ctx.arc(91,40,3,0,Math.PI*2,true);
				strokeColor :'rgb(253, 58, 2)',
				//strokeColor :'rgb(79, 114, 39)',

				ctx.moveTo(0,20);
				ctx.arc(0,20,3,0,Math.PI*2,true);
				strokeColor :'rgb(253, 58, 2)'
				//strokeColor :'rgb(79, 114, 39)'
            },
			isCover : function(e, x, y) {

			},
            /**
             * 返回矩形区域，用于局部刷新和文字定位
             * @param {Object} style
             */
            getRect : function(style) {
                return {
                    x : style.x,
                    y : style.y,
                    width : style.width,
                    height : style.height
                };
            }
        };
        var base = require('./base');
        base.derive(SteBor);
        var shape = require('../shape');
        shape.define('steBor', new SteBor());
        return SteBor;
    }
);